<?php



class TblGoldPriceHistoryMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.TblGoldPriceHistoryMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('mgig');

		$tMap = $this->dbMap->addTable('tbl_gold_price_history');
		$tMap->setPhpName('TblGoldPriceHistory');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('F_ID', 'FId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('F_PRICE', 'FPrice', 'double', CreoleTypes::DECIMAL, true, 12);

		$tMap->addColumn('F_DATETIME', 'FDatetime', 'int', CreoleTypes::TIMESTAMP, true, null);

	} 
} 